<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
  <div class="table-responsive">
    <table class="table table-bordered table-hover">

      <thead>
      <tr>
        <td class="text-center" width="65px;">序号</td>
        <td class="text-center">抵扣券名称</td>
        <td class="text-center">二维码</td>
        <td class="text-center">是否使用</td>
        <td class="text-center">添加时间</td>
        <td class="text-center">操作</td>
      </tr>
      </thead>

      <tbody>
      <volist name="list" id="list">
        <tr>

          <td class="text-center">{$list.id}</td>
          <td class="text-center">{$list.voucherName}</td>
          <td class="text-center"><a href="{$list.qr_code}" target="_blank"><img src="{$list.qr_code}" alt="" width="60"></a></td>

          <td class="text-center">
            <if condition="$list.type == 1">
              <span style="color: red">已使用</span>
              <else />
              <span style="color: green">未使用</span>
            </if>
          </td>
          <td class="text-center">{$list.addTime}</td>

          <td class="text-center">

            <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('voucherqrcode/del')}" data-id="{$list.id}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
          </td>
        </tr>
      </volist>

      </tbody>
    </table>
  </div>
</form>
<div class="row">
  <div class="col-sm-3 text-left"></div>
  <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
  // 点击分页触发的事件
  $(".pagination  a").click(function(){
    cur_page = $(this).data('p');
    ajax_get_table('search-form', cur_page);
  });

</script>